package com.pwt.repository;

import com.pwt.repository.base.BaseRepository;
import com.pwt.entity.RoleMachine;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * RoleMachine Repository层
 *
 * @author auto generated
 * @date 2021-10-11 10:55:46
 */
public interface RoleMachineRepository extends BaseRepository<RoleMachine, String> {

    @Query(nativeQuery = true,value = "delete  from role_machine where role_id=?1")
    @Modifying
    void deleteByRoleId(String roleId);

}
